﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FCBLL;
using FCModel;

namespace FileConverter
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var vqry = new BaseRepositoryBLL<bas_TestType>().LoadEntities(p => p.type != null && p.type.Equals("IQC", StringComparison.OrdinalIgnoreCase)).OrderBy(p=>p.testTypeDesc);
            foreach (var v in vqry)
            {
                HyperLink hl = new HyperLink();
                hl.NavigateUrl = string.Format("IQC/SmartScope/SmartScope.aspx?TestType={0}", v.testType);
                hl.Text = v.testTypeDesc;
                iqcMenu.Controls.Add(hl);
                iqcMenu.Controls.Add(new LiteralControl("<br />"));
            }
            //IQC/SmartScope/SmartScope.aspx?TestType=SmartScope
           // iqcMenu.Controls.Add();
        }
    }
}